Move templates to correct location, fix typos and refactor the same

This line should be deleted or uncommented