Added type documentation for one function and changed spelling error
Wrote start of test for event handlers