updated naivebayes and probability module