Tidying up the code, improving comments, and adding option to include Message-ID in checksum.
Greatly improved documentation in Markdown format.