tweaked code to work e1071 SVM
tweaked code to work e1071 SVM