added serialization javadoc