Creation of the main and of the file tree