Added implementations of analytic beta function derivatives with test cases