@henningw @grumvalski I have uploaded two additional commits, each one per module (tm and tsilo). Please have a look when you have some time and let me know if there are other remarks.
As I mentioned this code has been tested locally and showed itself working.