minor: changed type for local var target in method invokeEvent
reordering methods
added willTrigger checking into dispathchEventWith method
added asdocs for invokeEvent method
minor formatting