Write files using astropy.table instead of custom writer

Closes #38