Cleaned code
New feature for jammed trains detection and improvement to approaching
trains detection