svm refactoring

Switched to the more correct svm weight calculation. Alas, only
slightly improves accuracy. Much cleaner though. Suspicious of Eout
test.