added huge documentation for XML writer ;)