Fixed the gamma equation and the t-distribution is finally working