Added phase-reversal protection circuit to user supplied input pin (which used to go right to the noninverting pin of the LM324.