Script that performs all calibration and preprocessing steps