Added function to create line
Extracted out function to external function called buildLine, which is then called once the csv is parsed