added svm toolbox
code cleanup / refactoring