Added peg.js parsing, a primitive toSvg, and some other methods