Fix missing end, add is_calendar_writable method