update example and document