Added dc_divappr_q and fixed sb_divappr_q, general code clean up.