SVM parameters and some fixes