Added save to file

Save the logs to a tab separated file.