Creation of main file