Made read and write APIs take in fileEntries instead of filenames.
Fixed off-by-one bug with reducer.
Merge branch 'fs'