Added support for debug logging.
Added estimatedDistanceCutoff parameter and  estimatedNumMapClusters.