Fixed my stuff

Actually compiles (Still have a segfault)
Added makefile