Improve #6, fix end tag name support.

- Pass the nodelist to `__init__()`,
  don't set it in `cls.nodelist` because that affects all instances.
- Rename `endtagname` to `end_tag_name` because all other variables have
  that notation style.