Serialize food information

Changed to serialize the list of foods instead of writing to a file.