added chi test, and uupdated S_Coordiante and slope correlation