Update document, format