Add documentation.
Make command line parser generic for any command in lib or plugins.