Added getHeadings and getData to the csvfile class