added DayOfWeek interval and fixed a bug here and there.