Cleaned up do_calib.pro and fit_binary.pro