refactored to use pre-compiled static library instead of code files.
forgot to include math library .h file
implemented magic number factory to refactor globals out.