updating doc and example