Add exceptions and docs for messages