add nbayes and svm training function; not working yet