refactoring bin into cli class.
finishing up refactoring cli in to more classes.