hand tidy v2

* match mismatched tags
* reindenting
* lowercasing tags