add comments and move combineEquations to eqs.h&cpp