Tcl toolkit used in TetraMAX