Implemented debug info in html instead of injecting into the SVG document, cleaned some comments