small bugfixes and added sample
Better Makefile