added documentation for getParentEvent function