added command-line calibrate script