This is probably closing the gate after the horse has bolted but, for those who are still interested:
1. I traced the circuit out and have drawn up the schematic. It looks like the attachment:
2....