minor cleanup
move logging into set_checkpoint
remove duplicate copy/paste code into shared function
Merge pull request #57 from dimagi/cleanup

Cleanup