Got importFile working, and fixed a longstanding bug I never noticed in it.