TS examples: compile-fix and minor output cleanup