Add debug command-line flag.

Includes some update to documentation for flags, since the number of flags has increased.