added schema for templates and changed file structure
corrected path to template reader