fix makefile, add documentation