fixing bug with consecutive return values
Merge pull request #12 from mattdesl/fix-reuse

fixing bug with ever-growing array