Added comments to deserialize method.