C code for simulation and analyses of stochastic gene networks