Removal of sorting -

Additional changes to variable names, such as 'diff' and 'diff_cor' will help for now to differentiate between corrected and non-corrected values for pixel values, as well as help us keep track of what is being used in the calculations. If more confusing than before, feel free to remove.