Added mistake counter functionality and applied changes to report it in the saved documents.
May still need some extentions based on more incoming info, currently only a very limited understanding of all that is needed. So there is limited functionality.