added a median function
updated documentation for median
Merge pull request #1 from gidden/master

notwithstanding your aspersions on government work... good enough for me...