Implemented energy scale offset correction for data