Removed the unused matchedEvents variable.
Converted the doc renderer to tabs.
Fixed the documentation.

It looks like the tool I used to generate the documentation now ignores
the doc tag. Instead I have added the private tag to the methods I want
hidden and changed the renderer accordingly.
Regenerated the docs with the new render code.
Minified the latest code. RC for v4.1.0.

This version includes the RegEx functionality as suggested in issue #39.