Fixed residue calculation again for the append Mie curve

Also calculated the correction for this append using the appended n and
k values