fixed bug that reduced results!
changed behaviour of CMF to MAX CMF and removed distance measure