code that writes out team vector to csv written.