[issue 5] completed basic update functionality
works both from an instanced object and from a static method
Added some comments