clean up Makefile and generate documentation