Added discrete gamma and a few other additions

@jkitzes, over to you for review.