Refactored getGamma()
Fixed a bug in CW getGamma()