Added meta data and folder creation for subjects
Writes to csv file