I have covered this many times on renntech.
http://www.renntech.org/forums/index.php?showtopic=520&st=0&#entry2034 That link is even out dated. The connector now has a single part number 999 650 513 40. Porsche wants like $10 for that connector so I buy them from BMW for $1.50.
When you are done it looks almost like factory wiring. Peter taught me a trick. You buy a roll of black cloth hockey tape and split it. Then when you wrap the wires in tape it looks like the factory.