the end is optional according to the code

So make it explicit in the docs.
Merge pull request #5 from asgh/patch-2

setSelection end parameter is optional. Updates documentation to reflect this.