Fixed errors in example and added addCheckin

Fixed some minor errors in the example code and added an addCheckin method to checkins