To get the complete pdf : https://drive.google.com/file/d/0B94UgfCT1gUJWGlQZ2JXYWRZbDEtcEJsOFF6X25reGdTYXIw/view?usp=sharing
I have open sourced the codes at : https://github.com/LNMHacks/submissions/issues/37
A snapshot of time-collision class of the simulator :