Cleaned up source codes
Modified condition of Gamma which divides J1, J2, and J3