use sax to parse xml, add new option

Also added stroke data in json, and implemented options.single for @viirya.