Added support for all day events, added a few lines to facilitate testing.