API sanity check with json response "status OK".
Small code style tweaks, a bit of cleanup.
Implemented updated and delete APIs.