Original: When he was repatriated, he was allowed to keep the manuscript of a book he had been writing, and his pet starling.
Simplified: When he was sent back home after the war, he was allowed to keep both the manuscript of the book he had been writing and his pet starling.