updated documentation
added event constants for parameter keys
removed unneeded condition