changed example
updated example
updated docstrings