clean importer, and test_importer

clean up of the importer and test_importer. add functionality for
commandline execution