Fix issue #21
Add spaces before and after assignment
Add unit tests - one new issue uncovered:
-In single-select mode, nothing prevents one from manually selecting multiple items
Make sure only one item can be written to selection in single-select mode
Use else instead of early return
Merge pull request #27 from mwoc/issue21_singleselect

Single select mode - force max. 1 item in selection