made importer accept a path without a trailing /
fixed output filename
fixed importer to work with unaltered BMPM code (with corrections)