Importer fixes

* Fixes a number of undefined variables
* Remove a few unused variables
* Fix documentation for a few functions