clean up import order
sort import statements
add hook documentation