output stream buffering added.

Signed-off-by: Sean Ogden <positivelyskewed.sf@gmail.com>