Added support for click events as well as some minor bug fixes. I need
to monitor the perfomance now that click events have been added as well
as adding some configuration options for it.