Added rgamma stuff and tests