adding qcd background code and updating z estimate code