The last row of the CSV was not being returned

// set buffer to the last "incomplete" row
strBuffer = rows.pop();

Not sure what this is needed for, so removed it. It fixed the issue however.