Added eventLoop() tests and docs.
Merge pull request #13 from tristanls/event-loop-tests

Added eventLoop() tests and docs.