Printer class now writes to csv correctly