Add documentation for update method.