Preparing templates and folders