The single wire coming from up near the cylinder heaad should be your ignition kill, so if you earth it to the base while it is running it wil stop the engine.

The yellow wire reminds me of one I did up a while back I am pretty sure it was part of the charging circuit, We did need to put a diode in line with the charging circuit before the battery.