[RDY] generic output format

working towards solving #3.

Need a way to create a generic output so that we can use docx, rtf etc. as formats.