updated documentation for median