Use strict equality, code style corrections.
Handle self-closing paragraph tags.
Fixes #4
Other self-closing tags are not supported, we need to find a more generic solution.