Improved gain correction.
Figure 4 script is now able to plot paper 4 data.