updated calculateStats.py. starting to move scripto main in GREATx.py