SVM service restructuring and R - output parsing