change language to encode, make node module, fix mod func
fix decoding first byte of each tuple
add package.json, add tests
fix decoding partial tuples