Added function for csv printing in Main
merge attempt