TerraExplorer's Interactive Tutorial provides a set of samples written with TerraExplorer API. You can execute a range of commands to see their effects, and then review the source code for each sample. These codes provide an excellent starting point for creating a custom TEZ.
To access and work with the TerraExplorer Interactive Tutorial, open TerraExplorer, and on the Help tab, select Interactive Tutorial.