reports missing dependencies
fixes format action for erroneous documents.
now it only prints to the log and does not clear the document anymore.