Updated example in README.md
Removed trailing space
Cache the output of a read stream if it is needed to calculate the dep key
Moved things under util
Updated tests