update doc and test/example