Add script to generate template file