switch to using modules for copy_diff and cli interface
pull out input and output streams to cli level
Add help docs and implementation

help command now reads help from doc/help.txt
update comments and refactoring
Merge branch 'cli'