Fixed int runningSum overflow, changed to long and the testPrint bug.