add registerFunction
update readme