hooks not hacks
 use associative arrays for better incremental development; avoid $()
add a line of documentation
put hooks stuff in own file
Merge pull request #73 from daveagp/hooks

hooks not hacks