Adding docstring.
Updating import / test stuff.
Refactoring import slightly.