Reformatting code blocks and fixing broken links