Merge pull request #698 from anandpdoshi/anand-july-16

Naming: Name cannot be same as DocType if not single
Fixed doctype boilerplate and communication permissions