Add documentation for expect