new quantile calcualtion, source tree cleanup