Major refactor of CLI tool to use click library and improve interaction