Updates to XMLWriter class.

- Added javadocs and update some methods to support chaining
- Removed static create and made constructor public