serveral changes including median addition and calculations over all measurands