Added makefile, prepped more for gui creation, bugfixes.