added xml compatibility. fixed a couple of unclosed tags. changed doctype.