reading teh .train files