Added fully working simulator and fit of NB model.