Add comments; move absRRatioSquared inside conditionals