Improved log messages
Fixed partial editing of documents