Turn on probabilities for SVM.
Added tests for Constraints class and rewrote Constraints completely.