refactoring
WIP
.tpl extension for templates
added command NEW