updated progress bars, added minimal pair distance calculation