add registerFunction param define
update readme