Added settings to set how often trains are checked (higher update rates seem to have more reliable results).
Added option to disable the mod (which should revert all rotated trains, this still suffers from the bug where trains disconnect when on a junction and the train is accelerating).
Reorganized some of the code to make it easier to see the logic paths.
