Fixed html tag completion, and minor fixes.