getGCD in main code is finshed. Clean up the code.