a train can only be docked in a station if it has at least 1 carriage
added an error if trying to dock with 0 carriages
few minor changes