Code for running Ripple devices in simulation