Added missing documentation.

Addressed a few minor warnings, too.