enhance class (DELETE!) and minor cleanup
mostly svg2json and vice versa
add some tests