Changes for file uploading

Also handled the csv header line