made major changes to train node control and path control
Testing phase