Fixed output argument parsing and implemented ErrorAnalyzer