fixing readTrainFile() so it doesn't skip rows