change analyzer to have state keep track of the sets internally.
add svg_test.
Merge pull request #14 from QuantumGeordie/improve_analyzer

Improve analyzer