1. I suspect you're correct. The diagram suggests it mounts to the left side of the compartment.
2. Sounds like the secondary air pump connection.
Buy the Bentley E39 service manual.
Ed in San Jose '97 540i 6 speed aspensilber over aubergine leather. Build date 3/97. Golden Gate Chapter BMW CCA Nr 62319.