Refactoring output formats to use classes extending FormatInterface interface.
Update .gitignore