Implemented update api function for #184
Minor adjustments to the api