Fixed display of tags, various HTML and PEP 8 fixes