fixed the midnight wrapping bug. Added mode to live trains output