fixed write to remove_ind bug and cleaned QC rapport a bit