added support for NSCoding and date storage