A few bug fixes
More precise error reporting for Nan values in trasition matrix
Fixed a bug with regularization
Fixed a calculation bug in ellipsoid-vector distance