Add missing error check
Replace bytes buffer with Fprintf calls in WriteRows
Merge pull request #9 from sean-duffy/writerows-cleaning

Writerows cleaning