modifying iterate and iterateInner to allow for iterations of things like 20 minutes and 2 hours (durations that are not 1 period long)
re-working iterate and iterateInner to work with various input orders and durations
adjusting spacing to match current style
style adjustments