Added a method to get run dates in a date range

Added a method to get run dates in a date range and some minor optimizations.