Initial commit for simulation code