Added getAverage with Double[]
Remove all plugin related code, this aint a plugin!