cleaned up calibration code and added freq for calibration button on phone