update returns modified document
updated documentation
increment version number
update example to use $resource