Remove debug lines and fix index file storage location