add some comment
increase performance
Deadlock Detector added