Add example and the missing globalfunc file