adding some fixes to SVM codes 9.8