reading train/test data from data files