C3 and C4 Bayesian model code and documentation