Refactored command line to use subcommands
Added support for generating a JSON report