Formatting changes.
Changing some #defines. Added math classes from Violet.