display and progress

code displaychanges + progress in the algo:
- rhat computation + add to df
- start of the code for covariance (and weight) matrix