More Config-handling refinements

Changed config getter function into a joint getter and setter, added a
config cloning function, and refined the config validation and
documentation.