checking for folder existence

Creating subfolders if needed