Fixed global function name problem
fixed doc