Hello, Platypus...
To understand the layout function you have to know that it's divided into an upline(main and sidings in orange), and a downline (mauve). Each has a dogbone running main, a freight-car yard(the rightmost diagonal spurs in each color), and a loco-yard(the leftmost smaller...