Removed unused MathEngine class (instead used JEval library) and added
many javadoc comments/fixed some formatting.