Update and rename chfunc.reb to afunc.reb