Fixed #165. Enhanced the debug messages that appear when training the detector.