adding checks to fail on mismatch between reads and writes
Merge pull request #14 from shyamalan/master

adding checks to fail on mismatch between reads and writes