Move ODS generation to separate class. Add generic logger.