added modified code to help with debugging for smile detector