Changed default params and fixed bug with weighting

Weighting with the maximum of the distances should work now