Refactored & improved readCSV method
Updated csv functions with line-endings