GPII-128: changes based on code review

1. Added/updated comments
2. changed presetComponents -> presetPanels
3. removed defaulting the numSelections to 0 in the call to Math.min