updates type op section of ast. adds comments to ast