Serialization

This documentation is a work in progress.