overloaded serialization for Serializable
updated documentation