Added support for _update api

Closes #40. Added test cases.