Numerical Simulation of Gas Pipeline Networks: Theory, computational implementation, and industrial applications