write now also accepts a node buffer
install instructions for osx
fix typecheck logic
Merge pull request #2 from wiedi/master

Also accept node buffers for writing