Improve `src/stream.js` comments
Refactor `recurse` function