Added javadocs on all public non-internal methods.
Also added functionality to broadcast events on all entites.