refactor(cli, config): minor refactors, code conventions and feature improvments in CLI and config API