GS160 fitting with PX engine

I am fitting a PX engine into a GS 160 and have lost myself with the wiring. I have a 3 pin cdi and a ducati coil. can anyone tell me where all my wires go..I am lost.

 

Thanks