Implement model saving.
Removed "friend class XMLConfigFileReader".