Added code to reverse the pickling and read contents back from file