refactor
add pattern match to use smaller format
a bit more refactor
bump version
Merge pull request #13 from msgpack/refactor

Refactor, see #13