Add common header file for convenience.
Namespace and rename math functions.