Optimize save performance over the temp file if such is used.  Add
customization option whether to use temp file.
Document new query replace and save options.