wrote more docs and cleaned up makefile to build it on OS X(not quite working yet)