improve example + update doc