#35 isssue: Serialization of data (usually case classes) and weights (maps)