Updated cli readme.md and minor bugs fixes.