Fixed formatting and created working "save to csv" method.