The frayed cables, are probably the fused lives for the fuse box mate, they are designed to burn out if there is a problem, rather than blow loadsa fuses and or ignite...
The black red wire im prety sure is starter in some way...,
What is the little symbol on fuse box cover, for the fuse and relays which are playing up?