Data can now be written in either .csv or .xml format