Small code cleanup

- add const modifier to address parameter of event generating functions
Merge pull request #1051 from hurtonm/master

Small code cleanup