poll avg
fix things
made changes to datatypes
fix div by 0 error for avg