Allow hooks for specific matcher groups

Fixes #143.
Simplify hook selection logic
documentation tweaks
Merge branch 'programble-hook-groups'