successful implementation of multi-equation parsing; fixed all linebreak issues in math; refactor