I am so pissed at myself at the moment.....

I went down to Oudtshoorn this weekend with fully loaded bike.
On the way down everything was fine.
On Saturday i started hearing a tik tik tik noise coming from the engine.... i thought ahh maybe its cold oil a bit of valve noise maybe.
On my way back to PE today the tik tik noise started getting louder and i thought oh fuck!! what can make the noise...

50km outside PE i started losing power and was only able to go at about 120km/h full taps...

It suddenly became clear that the tik tik noise was spark jumping at a plug connection....
I haven't opened anything yet, will look tomorrow night...

Anybody got some advice on what to look for this can't be the first time this happened?
Is that black thing over the plug the coil?
Who has a 1200GS service manual on CD that i can have or where can i download...