Main activity refactor 1

Separated all arithmetic operations into separate functions all kicked off by mathify function on button click.