change the indri read function to the class. need test