Fix importer bug.
Get rid of debug output.
add die statements.
Add missing return.