For #11 convert resulting flag to IC vector (but not confident value is correct.
For #11 fix confusing TYPO - wrote join_cd when join_ic was meant.
For #11 add J_from_CD (but not confident value is correct).