implemented basic XML importer
fixed minor problems in XML importer