BUG: Replaced log(det(x)) with slogdet(x) to avoid numerical problems in loglike
ENH: Many typos fixed
ENH: Better PEP8 compliance in a few places