Copied over event system from another project of mine and generated 
javadoc.