First implementaion of automated compilation

Cleaned up a lot of generated file
Parameterized Makefile
Changed `#include`s to global