Created Method checkFolders() for checking/creating folder Structure