updated to be able to parse multi commands with input and output redirection with the assumption that the format of the commmands  is correct