Fixed a bug where sometimes a blank row was inserted into a large file

Not sure why, but write table seems to work better than “scan”
Digesting each column of the X data.frame

This lets us work with larger datasets