Document Tag class.
Fix class definition.

Everything is relative to the current namespace.
Readable variable names in Tag class.
The method signature is __toString, not __tostring.