Issue #6 - Fixing bugs in event queue priority logic and creating unit test.
Merge pull request #7 from PSchwisow/issue-6-event-queue-ordering

Issue #6 - Fixing bugs in event queue priority logic.