Added documentation to serializer functions
Added deserialization support