finished getting the new array location correction function and full uncertainty calculation function working