>the software is about keeping track on all the stuff on the various cars, no mean feat
Suggest you visit a logistics company. I think the (largely off-the-shelf) systems they use to track packages through their distribution and delivery network are more than capable of handling rail freight.