Re-wrote the whole calculator app

Now it's much cleaner and user friendly. I also managed to fix loads of
glitches that came with the older calculator code.