First commit - various comments in tps.py.