cleaned up the SVGParser a little bit