Added buy subcommand and updated karma plugin