added example to docstring and fixed doc string