Changed function name from autocorrectModelFormula to autocorrect_formula