Fixed documentation for getSelection()
Refactored enum field type