@fixed #1

Added the templates for main and test files.
Moved the file opener after writing templates to the files so that changes are loaded in the editor
script to merge with root repo