I'm not sure about the wiring, but I can tell you that in order to charge a battery you will need a rectifier and a voltage regulator. I don't recommend running any lights directly off a dynamo on a motorbike, as the voltage can vary wildly and end up blowing the bulbs. There is a link in my signature to a dynamo charging system I've built using a 12v dynamo, a charger unit from wonderful creations on ebay, a rockford fosgate power distributor, and a 12v sla battery. The generator gets a little warm from engine speeds, but certainly not overheating, and tests with my multimeter confirm that the system works.