uses language model
changes to run on Windows
minor merge MT.py