added make_formula, updated documentation