Make flags global variables in main driver.
Rename docCount to termCount in Corpus struct. Move SLUG_REPLACEMENT_RE directly into this file, and make its name reflect the RE, not its purpose.
Rename RE variables to reflect their contents, not their intended use. Move FORMAT_ constants to this file.