fixed docs
fixed tests
fixed BayesianModel