Agent: target PSN expects only the lowLong segment
Agent: ignore events that don't take place on the target applications main window

also cleans up a bunch of old useless code and gets the target PID from the NSRunningApplication