Split out code for handling unit selection group into own method
Improve documentation and comments for handle_selection_group
Improve some comments