rename variable |query| to descriptive |openInfo|
tidy formatting of identifier strings
make constant for custom event type
minor fix

* update comments