Creating the index file