Buffer/String input fix + documentation + npm package version update

Title says it all, this pull requests fixes a bug, updates the doc and npm.