Adam's corrections to HOMOL_FRAG program