Fixed issue in read.data

  The whole data set was always used for training.