Add proper gamma function and rename old gamma function to exp_log