add whole document serialization via toString(whole=true, compressed=true)
Merge pull request #4 from jankuca/serialization

add whole document serialization via toString(whole=true, compressed=true)