refactored Makefile
added doc headers