file templates

+ fix: insert template in a new file
+ byte order marks added to template files