Import callback

Major refactoring of the importer. 
Still few things to work on e.g. Submit error, header etc.