added TAg generation and code folding bindings