Added some javadoc to the serialization code.