chg: changed extgcd (because of extegcd(x,x) ovver Q)
fix: run mod_init in the package of the library