Added attributes to __init__() which are used later.
Added grid search to find best parameters for SVM.