base code done for Naive Bayes, fixed some bugs in descent