Made some of the data objects serializable copying hadoop's Writable interface.