update doc and sample