Dan's SVM stuff

includes stats stuff