new makefile and example main programs in example folders