Fixed the intial import seq.

small fixes to the insert and import modules.