Review sim and ui, mmw screwed the pooch branch

Didn't touch the sections reviewed in the previous pull request, a lot of the things fixed in that pull request are still valid even with the other changes.

simulator.tex is mostly good, ui.tex needs further cleaning up, I didn't have as much time as I hoped.