minor update for calibration function

calibrates in 1s now, and more reliably

also some minor changes to the schematic, fixing glitches