def config(name = nil, value = nil)
      if(name && value)
        # set value
        lib.config_set(name, value)
      elsif (name)
        # return value
        lib.config_get(name)
      else
        # return hash
        lib.config_list
      end
    end
def config(name = nil, value = nil)
      if(name && value)
        # set value
        lib.config_set(name, value)
      elsif (name)
        # return value
        lib.config_get(name)
      else
        # return hash
        lib.config_list
      end
    end
g.config('user.name', 'Scott Chacon') # sets value
g.config('user.email', 'email@email.com')  # sets value
g.config('user.name')  # returns 'Scott Chacon'
g.config # returns whole config hash