init lib/binding.js. Added export and fixes.

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>