add modularization of twss main
fix error with svm_model