Added support for subcommands. Fixed hlint warnings.