Added method for populating the input from a recurrence rule. Refactored iteration over days to a single method.