Added standard readConfig/writeConfig functionality to client.
Updated examples to use new readConfig/writeConfig functionality.