Added timestamps for filenames in CSVWriter. Refactoring.