Various refactoring and checkpointing doc.