changed some naming conventions for event logs, and added some debug api...

... stuff.