Add an option to save a log file. Improve summary.
More commenting, fix small bugs in the backup replace options.