Formatting text so whole equation is on one line
formatting so each equation is on a newline

This is probably my last commit for awhile - the code works perfectly
other than sanitised inputs and instruction text.