Added in dispatchEvent function
Merge pull request #4 from stevergill/steve041114

Added in dispatchEvent function