Added documentation and fixed minor bugs.

- Fixed `tagName` bug in older versions of DOCDocument (replaced with
  `nodeName`)
- Fixed notices when no CLI parameters are provided.