More code commenting. Added a few new event types.