removed defs in the wrong place
bulk of edge clipping and emitting done
working on scanning edges and fixing bugs
debugging edge clipping and a little span work