migrate from buffer to Uint8Array
the following PR fixes #51 . test script contained some instance of buffer which i shifted to Uint8Array. uint8array-tools library has also been used to make things easier.
I have kept naming conventions as it is.. LMK if that has to be changed @junderw
also in code there are requirements to convert typedArray to string in 'utf8' or 'binary' format. Whereas uint8array-tools library only provides to convert it to 'hex' format. I'll proceed with adding those two feature as well in that library
Hey @junderw all requested changes have been made. For now i Have installed "uint8array-tools" library from my forked repo. please review it.