Added Subshell I/O redirection, fixed some bugs in output