changes to Document interface and impl, docName and content