Create an index file