renamed TemplateToFileJSON to create, created a method to check dirInf, instead of having the template craetion process do it