fixed small bugs with training and testing with modularization, modularized classifier and added svm classifier