Added inverter w/ schmitt trigger to the output of the opamp to fixup its outputs.