Tweaked buffer dump functionality. Added overflow exceptions.