distanceM argument renamed and some doc fixes