Updated NSCoding methods to be more modern.