Added commenting explaining logic, completed 1st and 2nd simulation.