It would be better when you tell me what is not clear to you. There are already many TMF examples in the manual, so one more probably won't help unless it deals specifically with the points that were unclear.

- boatman: can you contact Support? I am not seeing the problem immediately, so this would now require going through your code and finding what's wrong, and the support has better eyes to do that. The first thing they'll probably suggest is that you put print() statements in your TMF for seeing if the relevant code parts are executed at all.