Added support for importing huge xml files; add logger