consider scope before indicating a match to the user

Only use the "matched" animation and sound if the respective trigger is
active in the current scope.

The apparently large changes are a result of moving existing code
around. The actual changes mainly consist of adding a couple of
notifications.
don't repeat the same assignments in a loop
add documentation
bump bersion to 1.6.0

and other metadata updates