added serialization documentation