Serializer

* Implement new specification of the serialization