Did a little error checking and prioritization of event handling. Git
master branch now can be exported as a jar and works.