restructured to separate Makefile from example proeject