added Micahel's stuff and the svm code.