Add option to create a csv file for range of dates instead of all data. Add some more fields to the csv file.