Added two new methods - flush() and close()
Updated dependencies
Code style cleanup to pass JSLint/JSHint
Exporting function at top level as well

Makes for a nicer looking import:

var LongPollingBuffer = require('longpollingbuffer'),
  pollbuffer = new LongPollingBuffer(100);
Moved to use double spaces for indention

To better conform with ordinary Node coding standards