make stream readable & writable
Merge pull request #6 from juliangruber/patch-1

make stream readable & writable