update cell regulator

This provides a way to update each cell without another loop over the whole list of cells. 
Also introduce a hack to give the user access to the simulator by passing sim to the model on the update file. 
The solution would be to have the Model file be a class that the user extends that has the Simulator as a field.