Added project libraries and makefile, fixing bugs