I have updated the simulator to use much cleaner matrix methods. However, it is not quite there yet.