added Update() to commit object and refactored post()