add tee program

I'm still a little hazy on exactly how stdin and stdout are working.