Complex sentence: They were designed for short-haul coal trips from coal mines to ports in South Wales, working 1000 + ton coal trains through the Welsh valleys.
Split into simpler sentences: They were designed for short-haul coal trips from coal mines to ports in South Wales. The principal role of the class was working the 1000 + ton coal trains up through the Welsh valleys.