Add loading, saving, reverting, cmdargs-formation; refactoring.