added option to specify a date range
pep8: check