added variables for current command_node, total commands, and commands read in struct command_stream.\n implemented read_command_stream function.