Changed name of inverse1 function in MathFunctions.java to moduloInverse1.
Minor reformatting
Created test code for MathFunctions.java class.