Made working makefile, compiled, fixed a bunch of stuff