Added support for _update api

Closes #40. Including test cases.