Writes header to csv file and removed loop
Fully working read and write for nodes/flows/combined data
fixed readNode return type
handles nodes and flows along with connection testing