update doc and examples