Added comments for config and command.

Mostly docstring expansion, some inline comment edits.