bug for event_type that allowed multiline parameter (\n) for a bad regexp
adding comments, removing old variables unused