Add DomainName test and fix errors in DomainName object
First cut at documentation.

[ci skip]