* reorganize files
* refactor to eliminate global type, env, package from Settings
* refactor cli to use commander
* more test scenarios