Suppress some benign phpmd warnings.
Fix some of the doc.

Auto-generate the doc for the methods' exceptions.