add functions, prepared for graph
Merge branch 'master' of https://github.com/assuming/NaiveBayesTools

update local