update documentation and some of the code after adding the Message.Err field