Map extractor: nicer output on errors

also adds -h and missing newline