added simple Makefile, corrected some glitches