Checkpoint system

Added initial write of checkpoint system