In 1897 the are became part of Barcelonas official borders Work on the famous Sagrada Familia had already begun in 1882 which back then was isolated and away from the city

What is the correctly punctuated version of this sentence?
In 1897 the are became part of Barcelona's official borders. Work on the famous Sagrada Familia had already begun in 1882, which back then was isolated and away from the city.
1897 blev de en del av Barcelonas officiella gränser Arbetet med den berömda Sagrada Familia hade redan påbörjats 1882 som då var isolerad och borta från staden Vad är den korrekt punkterade versionen av denna mening?
In 1897, they became part of the official borders of Barcelona Work on the famous Sagrada Familia had already begun in 1882 which was then isolated and away from the city What is the correctly punctured version of this sentence?
1897 blev de en del av Barcelonas officiella gränser. Arbetet med den berömda Sagrada Familia hade börjat redan 1882, som då var isolerad och borta från staden.
In 1897, they became part of the official borders of Barcelona. Work on the famous Sagrada Familia had already begun in 1882, which was then isolated and away from the city.