Add some comments to the "cholesky_factor" function.
Remove some trailing whitespace.