Two-phase flow

On the lattice boltzmann website, there is a brief explanation on how to incorporate two phase flow for permeability measurements.

The link is here: http://www.palabos.org/documentation/userguide/implemented-models.html#multi-component-and-multi-phase-fluids

How do I incorporate these changes into the code?