adding code for creating classifier training file