Read Command update

updated struct for command_stream and layed an auxiliary function to
check for validity