Rail safety has improved significantly over recent years, but more needs to be done to tackle the challenging issues of trespassers on tracks, accidents at level crossings and a growing number of track suicides.