fixed mean function to correctly test for floats
Janet added a median function.
Merge pull request #1 from jelewis666/master

New median function in stats.py