converted Sim_AvgQs.py to new Sim_AvgQs_HD.py version