Updated javadocs and small fixes.
Custom math lib