Looping for main()

1.To encoder many QP,setting for loop on main()
2.Using switch case to set flag in configfile.c file
3.Using fopen(p_Inp->StatsFile, "a") to avoid recovering stat.dat in
report.c flie