Initial commit of Monte Carlo simulation code