Remove use of references to be more understable.
Remove spaces to use tabs as original code.
Modifies debug messages to be more interesting.
Corrects indentation (we've added an if block).
Fix bug while find array.
Add function to display warning messages.
Fix typo.
Check repetition only if RRULE is defined.