refactor bayes algo a little; add some tests to show how alpha and beta change during test