Changed write.csv to write.table for write_agefile.