Added functionality to write txt or xls file formats
Edited comment
Added this function to write txt files of data
Function that passes data to the appropriate functions that write the data