updated documentation with new example