Improve code style
Add missing basic tests
Add syntax highlighting for XML example in README