update environment hook doc (fix #516)