corrected command options for import/export.
made sure commands clean up after themselves.