Added train type parsing #29