document some funcitons in renderast.js in prep of refactor