New parameters in example program
Fixing bug about not renaming local temporary ckpt dir.
Little typo.
Fixing rmdir bug. Inversing eraser flags.