Complex sentence: A machine was added to the engine room to produce gas from coal, the first ship in the world to have such a system, but problems with gas leaks meant it had to be removed before the ship went into service.
Split into simpler sentences: A machine was added to the engine room that made gas from coal, the first ship in the world to have such a system. However, problems with gas leaks could not be overcome, so the system was removed before the ship went into service.