Add `write` option to actually write out the hash into the files.
Merge pull request #1 from speedmanly/patch-1

Add `write` option to actually write out the hash into the files.