Working csv generator but need to fix odd numbered columns bug