Merge pull request #19 from armed/master

tree.toCSS may throw exception, which is not emitted
Bump version number #19
Merge pull request #20 from armed/patch-1

Bump version number #19
new plugin implementation and new tests