Change order of templates directories
Fix unnecessary fat arrows
Fix typo retur -> return
Add registerTemplates function