Support init function in hooks
Add hook script doc to README; more TODO