applied GPL and moved Averager.h in here