Put up a gui and tested the MathAPI.java. Fixed a number of errors.