Implemented the config set / get interface, plus tests