Ahh the joy of sanity checks. This mods brings nothing new feature wise, it only adds some bug fixes.  I had a nice array of all the train stops and updated it when the appropriate events was triggered, the only problem was that they are not triggered if the change happens in code. And when that code is from another mod i can’t call it myself either. So to fix the problem i now check every time i use a train stop from the array that the corresponding entity still exists, else i delete the entry from the array. Should most like always have been this way, but the other way was just simpler.

You can download the mod at the mods.factorio page. And you can view the changes to the code on github.