select and deselect changed to accept array.
Merge pull request #160 from sathyamoorthi/select-deselect

select and deselect changed to accept array.