bugfix: namespace
fixed visibility
changed method name and handling of main document
handling of DOMDocument for SVG, cleanup
addContext needs to be implemented by each backend context to allow providing additional arguments for constructor
fixed namespace