Added hasEvents utility, refactored calendar repeat to instantiate properties outside utility functions, fixed bugs