many changes includingadding custom date ranges and export to CSV