update doc and example