Added -out_active option.
Totally revised -map_extended option.  New algorithm is much more restrictive in extending the map.