added docstring and authorship information