Added updated.model fn

This function should update the model
Added ERROR comments