#1 added example for updateDocuments

issue #1