added documentation comments to serializer header.