Plenty of improvements

Removed minDist, maxDist stuff, was rather useless really.
So, now many things are A LOT simpler!