Added row consistency check to Writer

Implemented feature mentioned in #34