Setup analyzer object and open output file