cleaned up the code, csv metadata is now encapsulated in a PGNWriter object