Renamed erroneous event package
Added EventFactories for end events
Improved example Java app