added package.json,
fixed a bug with overflowing buffers