Removed logs and refactored traincontrollerdisplay.java