Config setter and getter

Added configuration setter and getter, implemented merging into
defaults.