Merge pull request #2 from 1000ch/master

brush up
Fix test
add tests
Merge branch 'master' of https://github.com/t32k/stylestats