restructure references to header file
rework mathlib.h header file, add some internal function prototypes