Support for highlighting a specific group within the grid when the classification dialog is opened. Also contains a lot of debugging printouts which will later be removed.