Added java doc to update method