updated docstring, added comment