Declare types for IO streams
Merge pull request #5 from timholy/master

Declare IO types