Creating index file