clean up import order
sort import statements
add hook documentation
Merge pull request #112 from eads/0.9-beta5

Add documentation of the hook system