Move math functions into proper .h header files
Makefile overhaul, improved flexibility/standalone support
Ignore compiled binaries and data files