Bug correction in reading data. Now all the tests pass.