added quantile, minor typo fixes in mda_util