fixed stupid bug in explore and now reads files correctly