minor updates
refactor to split event init and debug init functions
comments and copyright notice update