threshold calibration added, yellow repump duration calibration added, small changes