parses svg file, spits out wires and polygons, still need to fix redefinitions