added example of subcommand in docs, and fixed issue when printing help for a subcommand