added SVM plus lots of updates

a lot.