Enhancement/error checking ready

Unsure of which do_phase_fit and fit_acf are the correct ones here.