Moved require() to top and changed message for writing tidy data set to file.