changes so that simulations in documentation work
changes so simulations work