update Makefile
finish template and example