Added example of selecting ranges, added small event handling functionality to make doing so easier.