Does anybody have a clue as to what the diodes and resistors are for in this circuit? If so, where do the other ends attach?