CMakefiles changed to add the qa file + .cc + .xml filed modified to include Gray code as parameter