Replaced install_hook with set_index_flag, updated doc