add copyright info
modify makefile to use template