Voltage Regulator - electronic ignition

aslo i was setting the timing to about 5' and got shock when moving the cap on the rotor,any advice why this happened and can be the the cap on the rotor is a little loose