Code review

The dictionary associated with a Message is now private, and only
accessible via the Dictionary() function.

This commit also includes some readability improvements by using the
RequestFlag constant.

The documentation and comments of some functions have been updated.