added labels, updated example in docstring
example in its own script