started work on tee.c got a reader function working reading from stdin