added md extension to checkpoint file and updated code snippets with header syntax