Added online bayesian code and framework for others.