renamed variables. ping average calculated from 5 samples instead of 4