Creation of the index file