Code tidy up and formatting of array(List) averages