More code cleanup, considerable progress in restore program.
Finish writing restore subprogram, fix NULL pointer dereference when remote final cannot be retrieved/created, and return code/other cleanup. Near version 1.0.