Commented tm.py and  programs.py