Created a CSV_IO class + refactoring