Fixed typo in export.
Removed some code and fixed a typo in a docstring.