Improve stopping of all trains in an emergency
Changed train list and diagram list to be arrays
Moved debug messages to be written only if point debug mode is on
Changes to databases caused by testing Rail program