minor changes and added unit-test (log-det)
Merge pull request #1517 from lambday/feature/log_determinant

minor changes and added unit-test (log-det)