Improve the public API for better use in third-party extension. Add the MPL-header to the output files. make unit-tests verify the toMathML and getTeXSource and fixes some bugs with not well-formed XML output.