tmsim improvements to fit new interface
Merge branch 'master' of https://github.com/6004x/6.004x