Updated documentation
Fixed update() method