Added buffer support

# Summary
The library now supports node buffers as well as strings.

# Testing
Unit tests