update main.lua and newfile.lua

add create template