added output file tidydata.txt
added output to file