Adding OutputFormatter base class

I think there are opened issue #810