Initial commit

Initial version of the calculator, reasonably documented