update BayesComm script