refactor checkpoint interface, and comment.
checkpoint mechanism underway.