make #dates_between method error safe; clean up comments