Fixed some bugs. Readme, makefile.