Superb piece of work! I think that in my area, West Lothian, I may be able to suggest a few amendments in due course, once I find where my file of local notes went to in the course of tidying up! These relate to mineral lines, and would be to sort out connections, some of which changed at different times.
As a general point, I think that some of the mineral lines were not owned by the major local companies, but by the mine owners - almost an impossible job to differentiate on a map!
I would mention the Bangour Hospital Railway, which linked from the current Bathgate to Edinburgh line; though the junction area has disappeared under the motorway, there are still traces on the ground, and buildings within the abandoned hospital site.
Also the Winchburgh Electric Railway, connecting shale-oil mines to the processing works. Small sections still visible on the ground, if you know they are there.