Added stmd spec processor tool
Minor assorted fixes to better match spec
Pass token index to renderer fn + use it for br magick