EM training
added in commands to run the bernoulli experiment