Adds docstring, and corrects import