fixed bugs..
Merge branch 'gbDevelop_Detector' of https://github.com/vcsharma/sight into gbDevelop_Detector
added code comments