I'll echo JVS's response regarding the starting issue:
The crackling electrical sound is probably arcing across either a short circuit somewhere, or (perhaps more likely) across a broken battery cable connector.
The first time mine broke, it caused intermittent problems for about a week over about 100 miles before it finally failed me for good. I have no doubt that it could be your problem yet still eventually let you get home - the tape and heat-shrink insulation will hold the broken bits together just enough to allow current to intermittently flow.
When you weren't able to start the bike, were the lights and electrics working? If no, I'd say battery cable end. If yes, it could
still be a battery cable end. When mine failed, all the electrical stuff (lights, fuel pump) seemed to work perfectly, until I pressed the starter button, when everything would go dark. Release the starter button, electrics worked again. This was before I really knew how to properly kick start the bike, but even when I did get it kicked over, it wouldn't run, due, I assume, to the broken connection opening as the engine vibrated.
If your terminal ends aren't broken, then maybe check to see if all your wiring harness connectors are secure, and look for short circuits in places where the frame or other metal body parts might have chafed through wire insulation.
Incidentally, I replaced my cable ends with proper sturdy aftermarket ones, and a few days ago, one of them broke, too!
The real helpers here will chime in soon enough, I am sure!