Refactoring and checkpointing doc.