refine some doc for internal functions. compile custom helpers now. caculate custom helper usage count now.