watch flag, handles grouped commands

correctly runs and terminates multiple commands/command block, added a
flag to speficy which commands are to be watched