First commit of MSE simulation code.