v0.4.0 (de)serialization implemented, fixes #2