Complex sentence: T-flotilla in Skagerak and Kattegat, then as a training ship and finally as a torpedo recovery vessel in Gotenhafen for the rest of the war.
Split into simpler sentences: T-flotilla in Skagerak and Kattegat. She then served as a training ship and finally as a torpedo recovery vessel in Gotenhafen for the rest of the war.