Add $man and $help commands.

In future, please do not mix refactoring with new features in one commit if you can.