Added the ability to encode/decode to custom classes by adopting the BSONArchiving protocol.