Refactored. Shell input and output redirection works
Working on pipes