updated to be able to parse single command with input and output redirection
cleaned code
cleaned