create files and directories based on templates