update averager.c to include max and min