they used it to stop up to the versailles troops those long straight avenues which haussmann had expressly opened to artillery fire; they used it to cover their retreat, in the same way as the versaillese, in their advance, used their shells which destroyed at least as many buildings as the fire of the commune.

Please write the text above using proper case.
They used it to stop up to the Versailles troops those long straight avenues which Haussmann had expressly opened to artillery fire; they used it to cover their retreat, in the same way as the Versaillese, in their advance, used their shells which destroyed at least as many buildings as the fire of the Commune.