Refactored command line processing; implemented command line restore program; removed duplication in archive checkpointing