Added baseLocation for template files.
Extraction location is now saved for baseLocation of templates.
Added base template generator for template files.