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 provides an excellent starting point for creating a custom TEZ.
To access and work with the TerraExplorer Interactive Tutorial, open TerraExplorer, and then click the TerraExplorer button > Resources > Interactive Tutorial.