cor dissim to 1-abs(cor(.))
clean diagnostic code
impl pdf saving for diagnostic plots