Added dup, dup2, working on read and write from pipeBuffer