export alpha, gamma and nstage. Also add its tests