Added output buffer class
minor text change
added debug switch in logging