move exports to the top
update example at the top to use "string" instead of "char *"
use Buffer#copy() in the set() function

Fixes a TODO item
add a .jshintrc file
fix jshint warnings