implement mass encode/decode
Merge pull request #4 from muayyad-alsadi/master

implement mass encode/decode