added comment to median function

Hi @aweber6, I added descriptive comment to the median function.