Re-implemented CSV files reading/writing with the help of CSVFile classes from Jonathan Wood.