Removed trailing spaces.
Handles multi-selection.
Ensure that there are no duplicates in the rows.
Merge pull request #21 from Zeeker/master

Handle multi-select