Remove most caluculation code form stats gather java class (now in R)