change the way to config server, remove DefaultConfig
add set function test
update example in readme