First attempt, trying to build an import stuff routine.
Moar updates.
Last changes to make the import routine work.
Some new stuff that really doesn't belong here. I'm not good at this.