Added documentation for model.set and model.when