Added comments and changed api to fail gracefully when no check items are provided