Add serializable case class ExtractedDocument
Remove unnecessary serialization related code.