update doc and updated examples