MULTIGRAIN: a smoothed particle hydrodynamic algorithm for multiple small dust grains and gas. Issue 2 (13th February 2018)