Nodejs support and isue #54

This add the support of [Nodejs Buffer](http://nodejs.org/api/buffer.html) and fix the issue #54 (throw an exception when adding an unsupported format).