Fixed selection of mean class to select the one with maximal amount of
datapoints. Updated docs.