clean up and average can now be set to an int indicating the number of iterations before averaging