Making index file