Update Serialization.java

Updates to serialization.