fixed the script and update template
fixed makefile to copy TSPhoenixModel