Issue #9 - Handle merge of documents