clean up triangular distribution. Add log-precision functions, and mgf and cf.