misc fixes
added makefile