Adding OutputFormatter base class

again, this is not new code, but makes sense.