svm_test written
Add analysis functions back