Computation of waveguide scattering matrix near thresholds. Issue 8 (11th June 2017)