Buffer empty wait limit added and cleanup.

-Added the ability to specify an amount of time the class should wait
before it will fire the buffer empty message.