YDPCardDataEncoder : with detail comments and some other issues like extension to file name are completed