refactoring with package

define package of cli, conf and util.