Document stream.js

When I first opened this file, it wasn't clear where the input data came from. I wasn't expecting it  at the bottom. I added a few comments to clarify what's happening for new users.
merge mark issue #6
Merge branch 'markstos-patch-2'