Changed CSV loop indexing

fixes #7