avg was having problems if decimals were passed in
Merge pull request #40 from onefinestay/fixing_average

avg was having problems if decimals were passed in