added docstring to script