Fix custom serialization. Implement reading custom digests. Fixes #3.
Merge pull request #4 from radekg/custom-serialization

Fix custom serialization. Implement reading custom digests. Fixes #3.