Fix a typo that causes wrong behavior

The Avg function is calling “Sum” which is not the intended behavior.
Fixed broken test
Merge branch 'athiwatc-master'
Bumped version number and updated changelog
Merge branch 'release/v0.5'
Merge tag 'v0.5' into develop

Release v0.5.0