Adding in file writer method to data frame