moved avg method to above methods what use it..   shouldn't make a difference
reverted back to old average method for heroku @bartolotta
Merge branch 'master' into PTwork
reverted back to old average method for heroku @bartolotta