Fixin up the lack of makefiles. Also your program is broken.