Theorem: Suppose $f$ is bounded on [a, b],$f$ has only finitely many points of discontinuities on [a, b], and $\alpha$ is continuous at every point at which $f$ is discontinuous. Then $f\in R(\alpha)$.
To prove this, we cover E, the set of points of discontinuities, by finitely many disjoint intervals $[u_j, v_j]\subset [a, b]$. Furthermore we place these intervals in such a way that every point of $E\cap (a, b)$ lies in the interior of some $[u_j, v_j]$. Define $K=[a, b]\setminus \bigcup (u_j, v_j)$. Then it is said that K is compact and $f$ is continuous on K. How?
If $f$ is discontinuous at $a$ then $a=u_1$ and $a\in K$ so that $f$ is not continuous on $K$. So in this case, I think, we have to remove the interval $[u_1, v_1)$ from $[a, b]$ instead of $(u_1, v_1)$. Is this correct?