documentation fixed for linear time mmd