adding code for file preparation for SVM