Removed removing of the last <br/> tag as it was very slow.
Fixed formatting in all source files.