Xmldoc testing

Enabling xmldocs + made most of it internal