Ksvm

All the Visual Studio type issues should be gone now. I did some additional cleanup as well.