Adding serialize methods in datastream class for Provenance Collection Part