training file generator