Added IFormattedOutput and comfortable wrapper to write formatted files