added saving of final averaged weight and phdiff arrays in 2_4