Added nicer constructors for base math classes, and moved them to an inline header.
Cleaned up whitespace.