Updated a few comments and notations in simulation.js