fixed makefile, disabled compiled headers, & fixed C code