svm-predict and bug fixes