added option to generate daily/monthly stats
clean up plotting