numCases is now 1-indexed so that printing logic is clearer
Using printf for clarity.
Updated comments for clarity.