fixed calendar api, classes for events added.