Finish write documentation.

CLI refactoring.
Add missing module.