PrefsIO (import and export settings) - third version.
Debug logging added, bugs corrected.