example and docs updated
update example and doc