Added console output to all commands

Added if statement for console output for "nextstate"