Update of #56

This removes the hard-coded message size constant and replaces it with a "probe" call to discover the necessary buffer size.

Some minor coding standard/documentation issues addressed as well.