update function name and fixed error in script documentation